<template>
  <div>
    <Header></Header>
    <!-- 路由组件出口地方 -->
    <router-view></router-view>
    <!-- footer组件在home search页面显示，在登录注册下要隐藏 -->
    <Footer v-show="$route.meta.show"></Footer>
  </div>
</template>

<script>
import Header from './components/Header'
import Footer from './components/Footer'
export default {
  name: '',
  components: {
    Header,
    Footer
  },
  mounted(){
    // 派发action 获取商品分类的三级列表的数据
    this.$store.dispatch("categoryList");
  }
}
</script>

<style>

</style>
